<%@page import="bean.MemberDTO"%>
<%@page import="bean.MemberVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>view.jsp</title>
<link rel ='stylesheet' href ="/web/jsp/member/board.css"/>
<script src="/web/Js/member/member.js"></script>
</head>
<body>
<jsp:useBean id='vo' class='bean.MemberVo' scope='page'/>
<jsp:setProperty property="*" name="vo"/>

<%
MemberDTO dto= new MemberDTO();
dto.setVo(vo);
MemberVo v= dto.selectOne();
%>

<h1>회원 보기</h1>
<li>아이디<%=v.getMid()%></li>
<li>이름<%=v.getIrum()%></li>
<li>사진<%=v.getPhoto()%></li>

<%
if(v.getPhoto() !=null){%>
	<li><img src='./memberPhoto/<%=v.getPhoto() %>' alt="사진" width='200px' height='200px'></li>
<%} %>

%>
<input type ='button' value ='회원 작성' 	id = 'btnInput'/>
<input type ='button' value ='수정' 		id = 'btnModify'/>
<input type ='button' value ='삭제' 		id = 'btnDelete'/>
<input type ='button' value ='목록' 		id = 'btnList'/>
</body>
<script>viewInit();</script>

<form name = 'memberFrm' method = 'post'>
	<input type = 'hidden' name = 'mid' value = '<%=vo.getMid()%>'/>
	<input type = 'hidden' name = 'photo' value = '<%=vo.getPhoto()%>'/>
	<input type = 'hidden' name = 'nowPage' value = '<%=vo.getNowPage()%>'/>
	<input type = 'hidden' name = 'find' value = '<%=vo.getFind()%>'/>	
</form>

</html>